package code.rocky.chapter01;

public class Suggest15 {
    public static void main(String[] args) {
        System.out.println("2 = " + toChineseNumberCase(2));
    }

    private static String toChineseNumberCase(int value) {
        String chineseNumberCase ="";
        switch (value) {
            case 0: chineseNumberCase = "零";
            case 1: chineseNumberCase = "壹";
            case 2: chineseNumberCase = "贰";
            case 3: chineseNumberCase = "叁";
            case 4: chineseNumberCase = "肆";
            case 5: chineseNumberCase = "伍";
            case 6: chineseNumberCase = "陆";
            case 7: chineseNumberCase = "柒";
            case 8: chineseNumberCase = "捌";
            case 9: chineseNumberCase = "玖";
        }
        return chineseNumberCase;
    }
}
